package com.huahai.security.core.properties;

/**
 * @Author: Jun
 * @Date: 2020/7/19
 *
 * 状态码 枚举
 */
public enum StatusCodeEnum {
    /**
     * 请求成功 返回状态码
     */
    HSC200000("HSC200000","请求成功"),
    HSC400001("HSC400001","用户名或密码错误"),
    HSC400002("HSC400002","请求中不包含验证码字段"),
    HSC400003("HSC400003","验证码的值不能为空"),
    HSC400004("HSC400004","验证码已过期"),
    HSC400005("HSC400005","验证码不匹配"),
    HSC400006("HSC400006","验证码生成器不存在"),
    HSC400007("HSC400007","验证码处理器不存在"),
    HSC500001("HSC400001","Token已过期,请重新登录"),
    HSC500002("HSC500002","不支持的Token信息"),
    HSC500003("HSC500003","Token格式错误"),
    HSC500004("HSC500004","Token签名验证错误"),
    HSC500005("HSC500005","Token参数非法");

    StatusCodeEnum(String code, String message){
        this.code = code;
        this.message = message;
    }
    private final String code;
    private final String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
